<!DOCTYPE html>
<html lang=“en”>
<head>
<meta chaset="UTF-8">
<title>模板语法</title>
<script src='./vue.js'></script>
</head>
<body>
<div id="app">
 <div>{{name}}</div>
 <div v-text="name"></div>
 <div v-html="name"></div>
</div>
<script>//v-指令后的值不是一个字符串，而是一个表达式,但也可以+‘字符串/js表达式’
var vm=new Vue({
el:"#app",
data:{
name:"<h1>西柚</h1>"}
})
</script>
</body>